const {ccclass, property} = cc._decorator;

@ccclass
export default class HtmlView extends cc.Component {

    @property(cc.Label)
    lblTitle: cc.Label = null;
    @property(cc.WebView)
    webview: cc.WebView = null;

    public init(url:string,title:string){
        this.webview.url = url || '';
        this.lblTitle.string = title || '';
    }
}
